-- GENERATED SPELL FOR [Nerub'ar Sky Darkener] --


function spell0_25451(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(45577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25451', 11500, 1)
end

function spell1_25451(pUnit, Event) --@Web Bolt,n/a--
pUnit:FullCastSpellOnTarget(45587,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25451', 4000, 1)
end

function Sorts_25451(pUnit, Event)
local choix_sorts_25451 = math.random(0, 1)
if choix_sorts_25451 == 0 then
pUnit:RegisterEvent('spell0_25451', 1, 1)
end
if choix_sorts_25451 == 1 then
pUnit:RegisterEvent('spell1_25451', 1, 1)
end
end

function mob25451_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25451', math.random(1500, 3000), 1)
end

function mob25451_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25451_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25451_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25451, 1, 'mob25451_Action')
RegisterUnitEvent(25451, 2, 'mob25451_Leave')
RegisterUnitEvent(25451, 3, 'mob25451_Kill')
RegisterUnitEvent(25451, 4, 'mob25451_Die')
